﻿{% extends 'base.html' %}
{% block title %}
<title>Wow Dkp Engine</title>
<meta name="Keywords" content="wow,dkp"/>
<meta name="description" content="A wow dkp system" />
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
		//<![CDATA[
		google.load("jquery", "1.3.2");
		//]]>
</script>
<script type="text/javascript" src="/static/javascript/jquery.idTabs.min.js"></script>
<link rel="stylesheet" href="/static/css/tab.css" type="text/css" />
<style type="text/css" media="screen">
	.usual ul a:hover {
		color: #fff;
	}
	.usual ul a.selected {
		background-color: #333;
	}
	.tab {
		background-color: #333;
	}
</style>
{% endblock %}
{% load filter %}
{% block contents %}
<div id="header">
	<div id="main-menu">
		<ul class=menu>
			<li class="normal-page" ><a href="/">{{ multi_language.ca_home }}</a></li>
			<li class="normal-page"><a href="/pub/events/">{{ multi_language.ca_event }}</a></li>
			<li class="normal-page"><a href="/pub/players/">{{ multi_language.ca_players }}</a></li>
			<li class="normal-page"><a href="/pub/overview/class/">{{ multi_language.ca_class }}</a></li>
			<li class="normal-page"><a href="/pub/overview/score/">{{ multi_language.ca_overview}}</a></li>
			<li class="current-page"><a href="/admin/site/">{{ multi_language.ca_admin}}</a></li>
		</ul>
	</div>
</div>
<div id="main">
	<div id="main-sider-bar">
		<div id="sider-body">
			<ul id="admin-menu">
				<li class="normal-page"><a href="/admin/site/">{{ multi_language.ca_site_config }}</a></li>
				<li class="current-page"><a href="/admin/events/">{{ multi_language.ca_event_manage }}</a></li>
				<li class="normal-page"><a href="/admin/players/">{{ multi_language.ca_player_manage }}</a></li>
				<li class="normal-page"><a href="/admin/events/create/">{{ multi_language.ca_create_event }}</a></li>
				<li class="normal-page"><a href="/admin/events/import/">{{ multi_language.ca_import_event }}</a></li>
				<li class="normal-page"><a href="/admin/import/adjust/">{{ multi_language.ca_import_dkp }}</a></li>
			</ul>
		</div>
	</div>
	<div id="main-bar">
		<form method="post" action=".">	
		<b>{{ multi_language.ca_gear_name }} :</b>  <input id="gearr_name" type="text" name="gear_name" value="{{gear.gear_name}}"/><br /><br />
		<b>{{ multi_language.ca_gear_id }} :</b>    <input id="gear_id" type="text" name="gear_id" value="{{gear.gear_id}}" /><br /><br />
		<b>{{ multi_language.ca_gear_icon }} :</b>  <input id="gear_icon" type="text" name="gear_icon" value="{{gear.gear_icon}}" /><br /><br />
		<b>{{ multi_language.ca_gear_count }} :</b> <input id="gear_count" type="text" name="gear_count" value="{{gear.gear_count}}" /><br /><br />
		<b>{{ multi_language.ca_gear_cost }} :</b> <input id="gear_costs" type="text" name="gear_costs" value="{{gear.gear_costs}}" /><br /><br />
		<b>{{ multi_language.ca_gear_color }} :</b><br />
		<input type="radio" name="gear_color" value='808080' {% ifequal gear.gear_color '808080' %} checked='checked'{% endifequal %}/><span style='color:#808080'>{{ multi_language.ca_poor }}</span>
		<input type="radio" name="gear_color" value='ffffff' {% ifequal gear.gear_color 'ffffff' %} checked='checked'{% endifequal %}/><span style='color:#ffffff'>{{ multi_language.ca_common }}</span>
		<input type="radio" name="gear_color" value='1eff00' {% ifequal gear.gear_color '1eff00' %} checked='checked'{% endifequal %}/><span style='color:#1eff00'>{{ multi_language.ca_uncommon }}</span>
		<input type="radio" name="gear_color" value='0070dd' {% ifequal gear.gear_color '0070dd' %} checked='checked'{% endifequal %}/><span style='color:#0070dd'>{{ multi_language.ca_rare }}</span>
		<input type="radio" name="gear_color" value='a335ee' {% ifequal gear.gear_color 'a335ee' %} checked='checked'{% endifequal %}/><span style='color:#a335ee'>{{ multi_language.ca_epic }}</span>
		<input type="radio" name="gear_color" value='ff8000' {% ifequal gear.gear_color 'ff8000' %} checked='checked'{% endifequal %}/><span style='color:#f80000'>{{ multi_language.ca_legendary }}</span>
		<input type="radio" name="gear_color" value='ffd100' {% ifequal gear.gear_color 'ffd100' %} checked='checked'{% endifequal %}/><span style='color:#ffd100'>{{ multi_language.ca_heirloom }}</span>
		<br />
		<br />
		<b>{{ multi_language.ca_gear_owner }} :</b>
		<div id="player-tab">
			<div id="usual1" class="usual"> 
				<ul>
					<li><a class="selected warlock-color" href="#tab1">{{ multi_language.ca_warlock }}</a></li> 
					<li><a href="#tab2" class="priest-color">{{ multi_language.ca_priest }}</a></li>
					<li><a href="#tab3" class="mage-color">{{ multi_language.ca_mage }}</a></li>
					<li><a href="#tab4" class="druid-color">{{ multi_language.ca_druid }}</a></li>
					<li><a href="#tab5" class="rogue-color">{{ multi_language.ca_rogue }}</a></li>
					<li><a href="#tab6" class="shaman-color">{{ multi_language.ca_shaman }}</a></li>
					<li><a href="#tab7" class="hunter-color">{{ multi_language.ca_hunter }}</a></li>
					<li><a href="#tab8" class="paladin-color">{{ multi_language.ca_paladin }}</a></li>
					<li><a href="#tab9" class="warrior-color">{{ multi_language.ca_warrior }}</a></li>
					<li><a href="#tab10" class="deathknight-color">{{ multi_language.ca_deathknight }}</a></li>
				</ul>
				<div class="tab" id="tab1">
				{% for player in players %}
				{% ifequal player.player_class '9'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %} checked="checked" {%endif%} /><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{%endfor%}
				</div>
				<div class="tab" id="tab2">
				{% for player in players %}
				{% ifequal player.player_class '5'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %} checked="checked" {%endif%} /><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab3">
				{% for player in players %}
				{% ifequal player.player_class '8'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab4">
				{% for player in players %}
				{% ifequal player.player_class '11'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab5">
				{% for player in players %}
				{% ifequal player.player_class '4'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab6">
				{% for player in players %}
				{% ifequal player.player_class '7'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab7">
				{% for player in players %}
				{% ifequal player.player_class '3'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab8">
				{% for player in players %}
				{% ifequal player.player_class '2'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab9">
				{% for player in players %}
				{% ifequal player.player_class '1'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
				<div class="tab" id="tab10">
				{% for player in players %}
				{% ifequal player.player_class '6'%}
				<input type="radio" name="player" value="{{ player.key }}" {%if player.checkbox %}checked="checked"{%endif%}/><span style='color:{{player.player_class|classcolor}}'>{{player.player_name}}</span>
				{% endifequal %}
				{% endfor %}
				</div>
			</div>
		</div>
		<script type="text/javascript">
		$("#usual1 ul").idTabs();
		</script>
		<input type="submit" name="submit" value="{{ multi_language.ca_submit }}" id="submit"/>
		</form>
	</div>
	</div>
</div>
{% endblock %}